package com.enzoism.service.impl;

import com.enzoism.dao.UserMapper;
import com.enzoism.model.User;
import com.enzoism.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
 
    @Override
    public User getUserById(String id) {
        User user = userMapper.getUserById(id);
        return user;
    }

    public List<User> getAllUserList(){
        return userMapper.getAllUserList();
    }

}